package com.tgy.crud.converter;

import java.beans.PropertyEditorSupport;

public class StringTrimmerEditor extends PropertyEditorSupport {

    @Override
    public void setAsText(String text) throws IllegalArgumentException {

        if (text != null){

            text = text.trim();
        }

        setValue(text);
    }
}
